<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<!--  <div class="page-header">
 <h5><ww:if test="uuid!= null">修改系统</ww:if><ww:else>添加系统</ww:else></h5> 
</div>
-->
<ww:if test="item.uuid!= null">
<form class="form-horizontal form-validate" id="gettask_form" method="post" name="gettask_form" action="updTimerTask.action" onsubmit="return $action.submit(this)">
</ww:if>
<ww:else>
<form class="form-horizontal form-validate" id="gettask_form" method="post" name="gettask_form" action="addTimerTask.action" onsubmit="return $action.submit(this)">
</ww:else>
	<input type="hidden" id="uuid" name="uuid" value="<ww:property value='item.uuid'/>"/>
	<div class="control-group">
	    <label class="control-label"><span class="required">*</span>任务名称</label>
	    <div class="controls">
	       <input type="text" placeholder="不超过20个字"  class="input-xlarge required" name="name" id="name"  value="<ww:property value='item.name'/>"  maxlength="20"  <ww:if test="name!= null"></ww:if>> 
	    </div>
	  </div>
	  <div class="control-group">
	    <label class="control-label"><span class="required">*</span>作业类型</label>
	    <div class="controls">
	    	<ww:select attributes="class='input-large'" name="'jobType'" id="jobType" value="item.jobType"  list="#dictID.getDictListQuery('d_job_type')" listKey="code" listValue="name"></ww:select>
	    </div>
	  </div>
	  <div class="control-group">
	    <label class="control-label"><span class="required">*</span>执行类</label>
	    <div class="controls">
	      <input type="text" placeholder="请输入执行类"  class="input-xlarge required"  name="exeClass" id="exeClass" value="<ww:property value='item.exeClass'/>" maxlength="255" >
	    </div>
	  </div>
	  <div class="control-group">
	    <label class="control-label">执行参数</label>
	    <div class="controls">
	      <input type="text" placeholder="请输入执行参数"  class="input-xlarge"  name="exePara" id="exePara" value="<ww:property value='item.exePara'/>" maxlength="500" >
	    </div>
	  </div>	  
	  <div class="control-group">
	    <label class="control-label"><span class="required">*</span>执行公式</label>
	    <div class="controls">
	      <input type="text" placeholder="请输入执行公式"  class="input-xlarge required"  name="exeCorn" id="exeCorn" value="<ww:property value='item.exeCorn'/>"  maxlength="25" >
	    </div>
	  </div>
	  <div class="control-group">
	      <label class="control-label"><span class="required">*</span>任务状态</label>
	      <div class="controls">
		      <ww:iterator value="#dictID.getDictType('d_openflag')">
		           <label class="radio inline">
		          <input type="radio"  value="<ww:property value='code'/>" <ww:if test="item.openFlag==code">checked="checked"</ww:if> id="openFlag" name="openFlag"><ww:property value="name"/></label>
		      </ww:iterator>
	      </div>
	    </div>
		 <div class="control-group">
		    <label class="control-label"><span>&nbsp;</span><span>&nbsp;</span>任务描述</label>
		    <div class="controls">
	          <div class="textarea">
		        <textarea   class="input-xlarge" name="description" id="description"   maxlength="120"><ww:property value='item.description'/></textarea>
		      </div>
		    </div>
		  </div>
		<div class="set-btn" data-spy="affix" data-offset-top="200">
			<button class="btn green" type="button" onclick="$(this).submit();">保存</button>
			<a class="btn" href="javascript:;" onclick="$css.closeDialog()" >取消</a>
		</div>
</form>